
/*-----------------------------------------------------------------------------\
|                            The Pomodoro technique                            |
|                                                                              |
| Developer: Felipe Simões Lage Gomes Duarte                                   |
|                                                                              |
| Main Project: The Pomodoro technique                                         |
| Date: 28 / maio / 2011                                                       |
| Code: InstanceControl.java                                                   |
| IDE: NetBeans IDE 7.0 (Build 201104080000)                                   |
| Java: 1.6.0_24; Java HotSpot(TM) Client VM 19.1-b02                          |
|                                                                              |
\-----------------------------------------------------------------------------*/


package interfaces;//Nome do pacote de dados.

public class About extends javax.swing.JFrame {

   //construtor da classe
   public About() {
      initComponents();
      FrameInTheMiddle.centerFrameOnScreen(this);
   }

   @SuppressWarnings("unchecked")
   // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
   private void initComponents() {

      PainelSobre = new javax.swing.JPanel();
      javax.swing.JLabel jLabel0 = new javax.swing.JLabel();
      nomes = new javax.swing.JLabel();
      licenca = new javax.swing.JLabel();
      licenca1 = new javax.swing.JLabel();

      setDefaultCloseOperation(javax.swing.WindowConstants.DISPOSE_ON_CLOSE);
      setTitle("Sobre");
      setResizable(false);

      PainelSobre.setBorder(javax.swing.BorderFactory.createTitledBorder(""));
      PainelSobre.setName("PainelSobre"); // NOI18N

      jLabel0.setFont(jLabel0.getFont().deriveFont(jLabel0.getFont().getStyle() | java.awt.Font.BOLD, jLabel0.getFont().getSize()+5));
      jLabel0.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);
      jLabel0.setText("Pomodoro");
      jLabel0.setBorder(javax.swing.BorderFactory.createTitledBorder(""));
      jLabel0.setName("jLabel0"); // NOI18N

      nomes.setFont(new java.awt.Font("Arial", 0, 12));
      nomes.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);
      nomes.setText("<html> <div align=\"left\"><strong>Developed by: </strong> Felipe Simões Lage Gomes Duarte</div>");
      nomes.setName("nomes"); // NOI18N

      licenca.setIcon(new javax.swing.ImageIcon(getClass().getResource("/imagens/licenca.png"))); // NOI18N
      licenca.setName("licenca"); // NOI18N

      licenca1.setIcon(new javax.swing.ImageIcon(getClass().getResource("/imagens/pomodoro.png"))); // NOI18N
      licenca1.setName("licenca1"); // NOI18N

      javax.swing.GroupLayout PainelSobreLayout = new javax.swing.GroupLayout(PainelSobre);
      PainelSobre.setLayout(PainelSobreLayout);
      PainelSobreLayout.setHorizontalGroup(
         PainelSobreLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
         .addGroup(PainelSobreLayout.createSequentialGroup()
            .addGroup(PainelSobreLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
               .addGroup(PainelSobreLayout.createSequentialGroup()
                  .addContainerGap()
                  .addComponent(jLabel0, javax.swing.GroupLayout.PREFERRED_SIZE, 365, javax.swing.GroupLayout.PREFERRED_SIZE))
               .addGroup(PainelSobreLayout.createSequentialGroup()
                  .addGap(146, 146, 146)
                  .addComponent(licenca))
               .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, PainelSobreLayout.createSequentialGroup()
                  .addContainerGap()
                  .addComponent(nomes, javax.swing.GroupLayout.DEFAULT_SIZE, 365, Short.MAX_VALUE))
               .addGroup(PainelSobreLayout.createSequentialGroup()
                  .addGap(75, 75, 75)
                  .addComponent(licenca1)))
            .addContainerGap())
      );
      PainelSobreLayout.setVerticalGroup(
         PainelSobreLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
         .addGroup(PainelSobreLayout.createSequentialGroup()
            .addComponent(jLabel0)
            .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
            .addComponent(licenca1, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
            .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
            .addComponent(nomes, javax.swing.GroupLayout.PREFERRED_SIZE, 25, javax.swing.GroupLayout.PREFERRED_SIZE)
            .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
            .addComponent(licenca))
      );

      javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());
      getContentPane().setLayout(layout);
      layout.setHorizontalGroup(
         layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
         .addGroup(layout.createSequentialGroup()
            .addContainerGap()
            .addComponent(PainelSobre, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
            .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
      );
      layout.setVerticalGroup(
         layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
         .addGroup(layout.createSequentialGroup()
            .addContainerGap()
            .addComponent(PainelSobre, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
            .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
      );

      pack();
   }// </editor-fold>//GEN-END:initComponents
   //Ação do botão fechar
   // Variables declaration - do not modify//GEN-BEGIN:variables
   private javax.swing.JPanel PainelSobre;
   private javax.swing.JLabel licenca;
   private javax.swing.JLabel licenca1;
   private javax.swing.JLabel nomes;
   // End of variables declaration//GEN-END:variables

   public static void main(String args[]) {
      java.awt.EventQueue.invokeLater(new Runnable() {

         public void run() {
            new About().setVisible(true);
         }
      });
   }
}
